package com.sofa.api.config;


import com.sofa.api.client.logging.fallback.LoggingClientFallBack;
import com.sofa.api.client.permission.PermissionClient;
import com.sofa.api.client.permission.fallback.PermissionClientFallBack;
import com.sofa.api.client.user.fallback.UserClientFallback;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class FallbackConfig {

    @Bean
    public UserClientFallback userClientFallback(){
        return new UserClientFallback();
    }
    @Bean
    public PermissionClientFallBack permissionClientFallBack(){
        return new PermissionClientFallBack();
    }
    @Bean
    public LoggingClientFallBack loggingClientFallBack(){
        return new LoggingClientFallBack();
    }

}
